/* test-trace.h */
#undef MPPA_TRACEPOINT_PROVIDER
#define MPPA_TRACEPOINT_PROVIDER test
#undef MPPA_TRACEPOINT_FILE
#define MPPA_TRACEPOINT_FILE test-trace.h
#if !defined(_TEST_TRACE_H_) || defined(MPPA_TRACEPOINT_HEADER_MULTI_READ)
#define _TEST_TRACE_H_
#include "mppa_trace.h"
/* Declare a tracepoint named "test/tp0", having no arguments */

MPPA_DECLARE_TRACEPOINT(mytps, fctA__in, ())
MPPA_DECLARE_TRACEPOINT(mytps, fctA__out, ())

MPPA_DECLARE_TRACEPOINT(mytps, fctB__in, ())
MPPA_DECLARE_TRACEPOINT(mytps, fctB__out, ())

MPPA_DECLARE_TRACEPOINT(mytps, fctC__in, ())
MPPA_DECLARE_TRACEPOINT(mytps, fctC__out, ())

MPPA_DECLARE_TRACEPOINT(mytps, resolution__in, ())
MPPA_DECLARE_TRACEPOINT(mytps, resolution__out, ())

MPPA_DECLARE_TRACEPOINT(mytps, usr_main__in, ())
MPPA_DECLARE_TRACEPOINT(mytps, usr_main__out, ())



/* Declare a tracepoint named "test/tp1", having the following arguments:
 * - a int argument displayed in decimal format */
MPPA_DECLARE_TRACEPOINT(test,tp1,(
MPPA_TRACEPOINT_DEC_FIELD(int,value1))
)
/*
 * Declare a tracepoint named "test/tp2", having the following arguments:
 * - a int argument displayed in decimal format
 *   - a int argument displayed in hexadecimal format */
MPPA_DECLARE_TRACEPOINT(test,tp2,(
MPPA_TRACEPOINT_DEC_FIELD(int,value1),
MPPA_TRACEPOINT_HEX_FIELD(int,value2))
)
/*
 * Declare a tracepoint named "test/tp3", having the following arguments:
 * - a int argument displayed in decimal format
 *   - a int argument displayed in hexadecimal format
 *   - a int argument displayed in hexadecimal format */
MPPA_DECLARE_TRACEPOINT(test,tp3,(
MPPA_TRACEPOINT_DEC_FIELD(int,value1),
MPPA_TRACEPOINT_HEX_FIELD(int,value2),
MPPA_TRACEPOINT_HEX_FIELD(int,value3))
)
/*
 * Declare a tracepoint named "test/tp4", having the following arguments:
 * - a string argument
 *   - a long long argument displayed in hexadecimal format */
MPPA_DECLARE_TRACEPOINT(test,tp4,(
MPPA_TRACEPOINT_STRING_FIELD(char *, str),
MPPA_TRACEPOINT_HEX_FIELD(long long,llvalue))
)
/* Choose the log level of the tracepoints defined above */
MPPA_TRACEPOINT_LOGLEVEL(test,tp0,MPPA_TRACE_ERR)
MPPA_TRACEPOINT_LOGLEVEL(test,tp1,MPPA_TRACE_EMERG)
MPPA_TRACEPOINT_LOGLEVEL(test,tp2,MPPA_TRACE_ALERT)
MPPA_TRACEPOINT_LOGLEVEL(test,tp3,MPPA_TRACE_CRIT)
MPPA_TRACEPOINT_LOGLEVEL(test,tp4,MPPA_TRACE_INFO)
#endif
